﻿using System;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Drawing;
using Telerik.Web.UI;


public partial class Menu_DN : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            string ms = (Session["iddn"] == null) ? "-1" : (string)Session["iddn"];            

            
            RadPanelItem hdsx = new RadPanelItem();
            hdsx.Text = "Hoat động sản xuất";
            hdsx.Target = "content";
            RadPanelBar_DN.Items.Add(hdsx);
            //hdsx
            RadPanelItem hoatdongsx = new RadPanelItem();
            hoatdongsx.Text = "Hoạt động sản xuất";
            hoatdongsx.Target = "ctl00_ContentPlaceHolder1_content";
            hoatdongsx.NavigateUrl = "Sanpham/hoatdongsx.aspx?_iddn=" + ms.ToString();
            hdsx.Items.Add(hoatdongsx);
            //sanpham
            RadPanelItem Sanpham = new RadPanelItem();
            Sanpham.Text = "Sản phẩm";
            Sanpham.Target = "ctl00_ContentPlaceHolder1_content";
            Sanpham.NavigateUrl="Sanpham/XLsp.aspx?_iddn=" + ms.ToString();
            hdsx.Items.Add(Sanpham);
            //Nhienlieu
            RadPanelItem nhienlieu = new RadPanelItem();
            nhienlieu.Text = "Nhiên liệu";
            nhienlieu.Target = "ctl00_ContentPlaceHolder1_content";
            nhienlieu.NavigateUrl = "Sanpham/Nhienlieu.aspx?_iddn=" + ms.ToString();
            hdsx.Items.Add(nhienlieu);
            //Nguyen lieu
            RadPanelItem Nguyenlieu = new RadPanelItem();
            Nguyenlieu.Text = "Nguyên liệu";
            Nguyenlieu.Target = "ctl00_ContentPlaceHolder1_content";
            Nguyenlieu.NavigateUrl = "Sanpham/Nguyenlieu.aspx?_iddn=" + ms.ToString();
            hdsx.Items.Add(Nguyenlieu);
            //dien nuoc
            RadPanelItem Diennuoc = new RadPanelItem();
            Diennuoc.Text = "Điện nước";
            Diennuoc.Target = "ctl00_ContentPlaceHolder1_content";
            Diennuoc.NavigateUrl = "Sanpham/Diennuoc.aspx?_iddn=" + ms.ToString();
            hdsx.Items.Add(Diennuoc);
            //Nuoc ngam
            RadPanelItem Nuocngamt = new RadPanelItem();
            Nuocngamt.Text = "Nước ngầm";
            Nuocngamt.Target = "ctl00_ContentPlaceHolder1_content";
            Nuocngamt.NavigateUrl = "Sanpham/Nuocngamt.aspx?_iddn=" + ms.ToString();
            hdsx.Items.Add(Nuocngamt);

            //menu tinh hinh xa thai
            RadPanelItem tinhhinhxt = new RadPanelItem();
            tinhhinhxt.Text = "Tình hình xã thải";
            tinhhinhxt.Target = "content";
            RadPanelBar_DN.Items.Add(tinhhinhxt);
            //Nuoc thai
            RadPanelItem Nuocthai = new RadPanelItem();
            Nuocthai.Text = "Nước thải";
            Nuocthai.Target = "ctl00_ContentPlaceHolder1_content";
            Nuocthai.NavigateUrl = "";
            tinhhinhxt.Items.Add(Nuocthai);
            //Kiemsoatnuocthai
            RadPanelItem kiemsoat = new RadPanelItem();
            kiemsoat.Text = "Kiểm soát nước thải";
            kiemsoat.Target = "ctl00_ContentPlaceHolder1_content";
            kiemsoat.NavigateUrl = "tinhhinhxathai/kiemsoatnuocthai.aspx?_iddn=" + ms.ToString();
            tinhhinhxt.Items.Add(kiemsoat);
            //chatthairan
            RadPanelItem chatthairan = new RadPanelItem();
            chatthairan.Text = "Chất thải rắn";
            chatthairan.Target = "ctl00_ContentPlaceHolder1_content";
            chatthairan.NavigateUrl = "tinhhinhxathai/chatthairan.aspx?_iddn=" + ms.ToString();
            tinhhinhxt.Items.Add(chatthairan);
            //Thong tin khac
            RadPanelItem ttkhac = new RadPanelItem();
            ttkhac.Text = "Thông tin khác";
            ttkhac.Target = "content";
            RadPanelBar_DN.Items.Add(ttkhac);
            //kienngi
            RadPanelItem kiennghi = new RadPanelItem();
            kiennghi.Text = "Kiến nghị";
            kiennghi.Target = "ctl00_ContentPlaceHolder1_content";
            kiennghi.NavigateUrl = "thongtinkhac/kiennghi.aspx?_iddn=" + ms.ToString();
            ttkhac.Items.Add(kiennghi);
            //xuphathanhvi
            RadPanelItem xuphat = new RadPanelItem();
            xuphat.Text = "Xử phạt hành vi";
            xuphat.Target = "ctl00_ContentPlaceHolder1_content";
            xuphat.NavigateUrl = "thongtinkhac/xuphat_vp.aspx?_iddn=" + ms.ToString();
            ttkhac.Items.Add(xuphat);
            //giayphepmoitruong
            RadPanelItem giayphep = new RadPanelItem();
            giayphep.Text = "Giấy phép môi trường";
            giayphep.Target = "ctl00_ContentPlaceHolder1_content";
            giayphep.NavigateUrl = "thongtinkhac/giapphepmt.aspx?_iddn=" + ms.ToString();
            ttkhac.Items.Add(giayphep);
            //danhsachthietbi
            RadPanelItem thietbi = new RadPanelItem();
            thietbi.Text = "Danh sách thiết bị";
            thietbi.Target = "ctl00_ContentPlaceHolder1_content";
            thietbi.NavigateUrl = "thongtinkhac/dstb.aspx?_iddn=" + ms.ToString();
            ttkhac.Items.Add(thietbi);
            //dinhuongtuonglai
            RadPanelItem dinhhuong = new RadPanelItem();
            dinhhuong.Text = "Định hướng tương lai";
            dinhhuong.Target = "ctl00_ContentPlaceHolder1_content";
            dinhhuong.NavigateUrl = "thongtinkhac/dinhhuong.aspx?_iddn=" + ms.ToString();
            ttkhac.Items.Add(dinhhuong);
            //sucomoitruong
            RadPanelItem suco = new RadPanelItem();
            suco.Text = "Sự cố môi trường";
            suco.Target = "ctl00_ContentPlaceHolder1_content";
            suco.NavigateUrl = "thongtinkhac/sucomt.aspx?_iddn=" + ms.ToString();
            ttkhac.Items.Add(suco);
        }
    }
}
